import request from '@/utils/request'

// 查询场馆门票列表
export function listVenues(query) {
  return request({
    url: '/ticket/venuesbusiness/listVenues',
    method: 'get',
    params: query
  })
}

// 查询场馆门票详细
export function getVenues(ticVenuesConfigId) {
  return request({
    url: '/ticket/venuesbusiness/' + ticVenuesConfigId,
    method: 'get'
  })
}

// 新增场馆门票
export function addVenues(data) {
  return request({
    url: '/ticket/venuesbusiness',
    method: 'post',
    data: data
  })
}

// 修改场馆门票
export function updateVenues(data) {
  return request({
    url: '/ticket/venuesbusiness',
    method: 'put',
    data: data
  })
}

// 查询场馆信息
export function getListTicOherBase() {
  return request({
    url: '/ticket/scenic/listTicOherBase?otherBaseType='+3,
    method: 'get'
  })
}

// 查询门票信息
export function getListScenic() {
  return request({
    url: '/ticket/venues/listSelect',
    method: 'get'
  })
}

// 查询方案信息
export function getVenuesList(ticOtherBaseId) {
  return request({
    url: '/ticket/programme/listSelect/'+ticOtherBaseId,
    method: 'get'
  })
}
